var Base = require('./baseModel.js'),
 	util = require('util'),
 	crypt = require('../middleware/crypto.js');
var b = Base.prototype;

function gameModel() {
	Base.apply(this, arguments);
}
util.inherits(gameModel, Base);

gameModel.prototype.initUser = function(user_id,callback) {
	var last_update = Date.now();
	// Should use prepared statements, but too lazy.. testing concept..
	last_update = Date.now();
	var sql = "INSERT INTO browsergame.user_res(gold,user_id,last) VALUES("+gold+","+user_id+","+last_update+")";
	
	db.query(sql,function(err,result){
		callback(err,result);
	})	
}}

   